package lab02.Test06;

/**
 * Created by tanfei on 2017/10/15.
 */
public class Ladder {
    //属性：类型double的上底、下底、高、面积
        double upper;
        double bottom;
        double height;
        double area;
    //行为：返回面积
        double area(){
        return (upper+bottom)*height/2;
    }
    //构造函数
    //main函数
         public static void main(String[] args) {
    }
}
